import Mock from 'mockjs'

// 设置响应规则
Mock.mock('/api/users/list', 'get', () => {
  return {
    code: 200,
    data: {
      totalCount: 2,
      list: [
        {
          id: 1,
          name: 'test',
          realname: 'test',
          cellPhone: 11111111111,
          enable: 1,
          departmentId: 4,
          roleId: 5520,
          createAt: new Date(),
          updateAt: new Date()
        },
        {
          id: 2,
          name: 'test2',
          realname: 'test2',
          cellPhone: 22222222222,
          enable: 1,
          departmentId: 4,
          roleId: 5520,
          createAt: new Date(),
          updateAt: new Date()
        }
      ]
    }
  }
})
